[go to|take] (great|) pains {to do sth}
1
to put a lot of care and effort into doing something
- Government is taking pain to lessen poverty.
- He took great pains to dress well for the occasion.
- He’s taken great pains to improve his image.
- The firm goes to pains to explain that it is not just an online file store.